package cn.easyshipping.cloud.business.service.impl;

import cn.easyshipping.cloud.business.entity.BPort;
import cn.easyshipping.cloud.business.mapper.BPortMapper;
import cn.easyshipping.cloud.business.service.IBPortService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 港口表 服务实现类
 * </p>
 *
 * @author sunyongqiang
 * @since 2020-01-13
 */
@Service
public class BPortServiceImpl extends ServiceImpl<BPortMapper, BPort> implements IBPortService {

    public boolean updatePortName(String id, String name) {
        BPort bPort = new BPort();
        bPort.setId(id);
        bPort.setNameCn(name);
        return updateById(bPort);
    }
}
